package com.hm.prac1;

import java.util.ArrayList;

public class EatableTest {
    public static void main(String[] args) {
        ArrayList<Eatable> list = new ArrayList<>();
        list.add(new Chinese());
        list.add(new American());
        list.getFirst().eat();
        list.get(1).eat();
    }
}
